<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>贪吃蛇游戏</title>
</head>
<body>
<div id="map"></div>
<script>
    window.blockSize = 20;
    window.mapSize = 20;
    var map = document.getElementById('map');
    with(map.style){
        width = window.blockSize*window.mapSize + 'px';
        height = window.blockSize*window.mapSize + 'px';
        background = 'gray';
        position = 'relative';
    }
</script>
<script src="snake.js"></script>
<script src="food.js"></script>
<script src="game.js"></script>
</body>
</html>